
//------------------------------------------------------------------------------

namespace Apps.Models
{
    using System.ComponentModel.DataAnnotations.Schema;
    using System;
    using System.Collections.Generic;

    [Table("SYSROLE")]
    public partial class SysRole
    {
        public SysRole()
        {
            this.SysRight = new HashSet<SysRight>();
            this.SysUser = new HashSet<SysUser>();
        }

        [Column("ID"), System.ComponentModel.DataAnnotations.Key]
        public string Id { get; set; }
        [Column("NAME")]
        public string Name { get; set; }
        [Column("DESCRIPTION")]
        public string Description { get; set; }
        [Column("CREATETIME")]
        public System.DateTime CreateTime { get; set; }
        [Column("CREATEPERSON")]
        public string CreatePerson { get; set; }

        public virtual ICollection<SysRight> SysRight { get; set; }
        public virtual ICollection<SysUser> SysUser { get; set; }
    }
}
